﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Template.aspx.cs" Inherits="CNVP.JShop.Web.Admin.Template.Template" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title><%=CNVP.Config.UIConfig.SiteName%></title>
            <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="IE=7" http-equiv="X-UA-Compatible" />
       <link href="../CSS/Global.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/List.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../../Scripts/Common.js" type="text/javascript"></script>
    <script src="../Common/Option.js" type="text/javascript"></script>
    <link type="text/css" href="../images/global.css" rel="stylesheet"/>
<link type="text/css" href="../common/option.css" rel="stylesheet"/>
<link type="text/css" href="../common/thickbox.css" rel="stylesheet"/>
<script type="text/javascript" language="javascript" src="../common/thickbox.js"></script>
<script type="text/javascript" language="javascript" src="../common/option.js"></script>
<script type="text/javascript" language="javascript" src="./template.js"></script>
<link type="text/css" href="./Template.css" rel="stylesheet"/>
</head>
<body onload="ActiveCoolTable()">
    <form id="form1" runat="server">

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td class="cell_group">
            <img src="../Images/ListIconTitle.jpg" alt="" />&nbsp;您的位置：<a href="Template.aspx">模板列表</a>
        </td>
    </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td >
    <table border="0" cellspacing="0" cellpadding="0" class="Option">
  <tr>
    <td ><img src="../Images/Dot18.png"/>
        <asp:LinkButton ID="btAddFolder" runat="server" onclick="btAddFolder_Click">添加文件夹</asp:LinkButton>
    <img src="../Images/Dot19.png"/>
    <asp:LinkButton ID="btAddFile" runat="server" onclick="btAddFile_Click" >添加文件</asp:LinkButton>
    <img src="../Images/Dot19.png"/>
    <asp:LinkButton ID="btUpFolder" runat="server" onclick="btUpFolder_Click"  >上一级目录</asp:LinkButton>
    <img src="../Images/BtnUpload.png" />
    <a href="#" onclick="TemplateUpload('<%=Request.Params["path"]%>');">上传</a>
    <img src="../Images/BtnImport.png" />
    <a href="#" onclick="TemplateImport('<%=Request.Params["path"]%>');">导入</a>
    <img src="../Images/BtnExport.png" />
    <a href="#" onclick="TemplateExport('<%=Request.Params["path"]%>');">导出</a>
    <img src="../Images/Dot08.png"/> <asp:LinkButton ID="btDelete" runat="server" onclick="btDelete_Click">删除</asp:LinkButton>
    </td>
    <td></td>
  </tr>
</table>
</td>
    <td>&nbsp;</td>
  </tr>
</table>
</td>
  </tr>
  <tr>
    <td>
       <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ListTable">

        <asp:HiddenField ID="hfCurentPath" Value="" runat="server" />
        <asp:Repeater ID="rpList" runat="server">
                <HeaderTemplate>
                   <thead>
                            <tr>
                            <th><input onclick="checkAllLine()" id="checkedAll" name="checkedAll" type="checkbox" title="全部选择/全部不选" /></th>
                            <th>文件名称</th>
                            <th>类型</th>
                            <th>文件大小</th>
                            <th>最后修改时间</th>
                           </tr>
                        </thead>
                         <tbody>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:CheckBox CssClass="CheckBox" id="cbCheck" runat="server" ToolTip='<%#(Eval("oPath").ToString()+Eval("oFileName").ToString())%>'></asp:CheckBox>
                             </td>
                        <td><img src="file/<%#Eval("oFileType")==""?"default.icon":Eval("oFileType")%>.gif" style="height:auto; width:auto;" alt="<%#Eval("oFileType")%>" title="<%#Eval("oFileType")%>" /><a href='<%#(Eval("oFileType")=="Folder")?("?path="+Eval("oPath")+Eval("oFileName")+"/"):("FileEdit.aspx?path="+Eval("oPath")+"&file="+ Eval("oFileName")) %>' target="_self"><%# Eval("oFileName")%></a></td>
                        <td><%#(Eval("oFileType")=="Folder")?"文件夹":Eval("oFileType")%></td>
                        <td><%#Eval("oFileSize")%></td>
                        <td><%#Eval("oFileModifyTime")%></td>
                        
                     </tr>
                </ItemTemplate>
                <FooterTemplate>
                                 <asp:Literal ID="lblEmpty" Text="<tr><td colspan='5'>没有符合条件的条目!</td></tr>" runat="server" Visible='<%#bool.Parse((rpList.Items.Count==0).ToString())%>'></asp:Literal>
                    </tbody>
                </FooterTemplate>
        </asp:Repeater>
         <tfoot>
            <tr><td colspan="5"><div id="paging" runat="server"></div></td></tr>
            </tfoot>
        </table>

    </td>
  </tr>

</table>
    </form>
</body>
</html>
